<include file="__THEME__/header" />
<link href="../Public/css/blog.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/kissy/themes/default/editor-min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/kissy/neweditor.js"></script>

<script type="text/javascript" src="../Public/js/addBlog.js"></script>
<div class="ask_add"> {:L('now_placs')}：{$headerList} </div>


<!----------发布样式 begin-------------->
<div class="contents">
  <div class="lineC">
    <h3 class="tit_bg">{:L('blog_post_new_artice')}</h3>
    <div style="width:100%; overflow:hidden;">
    <form action="{:U('home/blog/doAddBlog')}" onsubmit="return checkForm()" method="post">
      <table align="left" style="margin-left:50px;_margin-left:25px;">
        <tr height="5">
          <td> </td>
          <td> </td>
        </tr>
        <tr height="40">
          <td align="right">{:L('blog_title')}：</td>
          <td align="left">   <select name="category" id="select" onchange="javascript:changeCategory($(this))" class="in_put_01 mr5">
                                    <php>
                                    	if(!empty($category)){
                                        foreach( $category as $value ){
                                    </php>
                                    <option value="{$value['id']}">{$value['name']}</option>
                                    <php>
                                        }
                                        }else{
                                     </php>
                                        <option value="noSelected">{:L('blog_please_select')}</option>
                                    <php>
                                        }
                                    </php>
                                    <optgroup id="group">
                                        <option value="0">+{:L('blog_edit_add_category')}</option>
                                    </optgroup>
                             </select>
          </select><input type="text" id="title" name="title" class="w560 in_put" value=""/></td>
        </tr>
        <tr height="40">
          <td align="right" valign="top">{:L('blog_content')}：</td>
          <td align="left">
        	<textarea  class="in_put" id="content" name="content" cols="" rows="20" style="width:700px" ></textarea>
          </td>
        </tr>
        <tr height="30">
          <td align="right" class="pt10">{:L('blog_tags')}：</td>
          <td align="left" class="pt10"><input class="w125 in_put mr10" name="tags" type="text" id="tags" />
            <a class="pr10" href="javascript:autoTags();">{:L('blog_auto_tags')}</a>{:L('blog_tags_info1')},{:L('blog_tags_info2')}</td>
        </tr>
        <tr height="30">
          <td align="right" valign="top" class="pt15">{:L('blog_attach')}：</td>
          <td align="left" valign="top" class="pt10">
              <div>{:W( 'UploadAttach',array( 'uid'=>$mid , 'type'=>'blog' , 'callback'=>'attach_upload_success'))}</div>
              <div class="attach"></div>
           </td>
        </tr>
         <tr height="40">
          <td></td>
          <td align="left" valign="middle">
            <input class="btn_sea" name="" type="submit" value="{:L('blog_post_new_content')}" /></td>
        </tr>
      </table>
      </form>
      </div>
    <!--右边警告 begin-->
    <div class="C"> </div>
  </div>
  <!--右边警告 begin-->
</div>


<include file="__THEME__/footer" />